package utilities;

import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;

import grammar.Terminal;
import guis.SumoG;

public class MorphologyTester {
	private static utilities.LexiconRepository lexRep = new utilities.LexiconRepository();
	private static SumoG sumog = new SumoG(lexRep);
	
	private static void generate_all(){
        Hashtable<String, Terminal> symbols = lexRep.getSpeakingDynamicallySymbols();
        int i = 0;
        Enumeration<String> keys = symbols.keys();
        while(keys.hasMoreElements()){
        	String e = keys.nextElement();
        	System.out.println(e);
        	Terminal t = symbols.get(e);
        	Vector<Terminal> vt = new Vector<Terminal>();
        	vt.add(t);
        	t.Modus = "Ind";
    		t.Tempus = "Pres";
    		t.Case = "GEN";
    		t.Person = "3";
    		if (t.Number == null) t.Number = "Sg";
        	System.out.println(i+" "+sumog.processWordSequence(vt));
        	i++;
        }
		
	}
	
	public static void main(String[] args){
		generate_all();
	}
}
